package cn.vcjf.weapp.api.goods.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableName;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
    * 优惠券
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_goods_discount")
public class GoodsDiscount extends PageModel<GoodsDiscount> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 优惠券编号
     */
    private String discountNo;

    private String discountName;

    /**
     * 商品id
     */
    private Integer goodsId;
    /**
     * 分类id
     */
    private Integer goodsTypeId;
    /**
     * 优惠券类型
     */
    private Integer discountType;

    /**
     * 优惠券金额
     */
    private BigDecimal price;

    /**
     * 最低使用金额（满多少才能用）
     */
    private BigDecimal minUsePrice;

    /**
     * 使用截止时间
     */
    private Date useEndTime;

    /**
     * 优惠券发行总量
     */
    private Integer discountNum;

    /**
     * 已领取总数
     */
    private Integer drawedNum;

    /**
     * 未领取总量
     */
    private Integer notDrawNum;

    /**
     * 已使用总量
     */
    private Integer usedNum;

    /**
     * 未使用总量
     */
    private Integer notUseNum;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getDiscountNo() {
        return discountNo;
    }

    public void setDiscountNo(String discountNo) {
        this.discountNo = discountNo;
    }
    public String getDiscountName() {
        return discountName;
    }

    public void setDiscountName(String discountName) {
        this.discountName = discountName;
    }
    public Integer getDiscountType() {
        return discountType;
    }

    public void setDiscountType(Integer discountType) {
        this.discountType = discountType;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public BigDecimal getMinUsePrice() {
        return minUsePrice;
    }

    public void setMinUsePrice(BigDecimal minUsePrice) {
        this.minUsePrice = minUsePrice;
    }
    public Date getUseEndTime() {
        return useEndTime;
    }

    public void setUseEndTime(Date useEndTime) {
        this.useEndTime = useEndTime;
    }
    public Integer getDiscountNum() {
        return discountNum;
    }

    public void setDiscountNum(Integer discountNum) {
        this.discountNum = discountNum;
    }
    public Integer getDrawedNum() {
        return drawedNum;
    }

    public void setDrawedNum(Integer drawedNum) {
        this.drawedNum = drawedNum;
    }
    public Integer getNotDrawNum() {
        return notDrawNum;
    }

    public void setNotDrawNum(Integer notDrawNum) {
        this.notDrawNum = notDrawNum;
    }
    public Integer getUsedNum() {
        return usedNum;
    }

    public void setUsedNum(Integer usedNum) {
        this.usedNum = usedNum;
    }
    public Integer getNotUseNum() {
        return notUseNum;
    }

    public void setNotUseNum(Integer notUseNum) {
        this.notUseNum = notUseNum;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Integer goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsDiscount{" +
        "id=" + id +
        ", discountNo=" + discountNo +
        ", discountName=" + discountName +
        ", discountType=" + discountType +
        ", price=" + price +
        ", minUsePrice=" + minUsePrice +
        ", useEndTime=" + useEndTime +
        ", discountNum=" + discountNum +
        ", drawedNum=" + drawedNum +
        ", notDrawNum=" + notDrawNum +
        ", usedNum=" + usedNum +
        ", notUseNum=" + notUseNum +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
